import request from '@/utils/request'

// 查询站点类型代码列表
export function listStationTypeInfo(query) {
  return request({
    url: '/station/stationTypeInfo/list',
    method: 'get',
    params: query
  })
}

export function selectStationTypeInfoDict() {
  return request({
    url: '/station/stationTypeInfo/dictList',
    method: 'get',
  })
}


// 查询站点类型代码详细
export function getStationTypeInfo(id) {
  return request({
    url: '/station/stationTypeInfo/' + id,
    method: 'get'
  })
}

// 新增站点类型代码
export function addStationTypeInfo(data) {
  return request({
    url: '/station/stationTypeInfo',
    method: 'post',
    data: data
  })
}

// 修改站点类型代码
export function updateStationTypeInfo(data) {
  return request({
    url: '/station/stationTypeInfo',
    method: 'put',
    data: data
  })
}

// 删除站点类型代码
export function delStationTypeInfo(id) {
  return request({
    url: '/station/stationTypeInfo/' + id,
    method: 'delete'
  })
}


// 清理参数缓存
export function clearCache() {
  return request({
    url: '/station/stationTypeInfo/clearCache',
    method: 'delete'
  })
}
